package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单卖品详情对象 order_goods_combo
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("order_goods_combo")
public class OrderGoodsCombo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;
    /** 订单商品ID */
    @Excel(name = "订单商品ID")
    private Long orderGoodsId;
    /** 商品编码 */
    @Excel(name = "商品编码")
    private String goodsCode;
    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long goodsCount;
    /** 商品类型 */
    @Excel(name = "商品类型")
    private String goodsType;
    /** 卖品所属套餐ID */
    @Excel(name = "卖品所属套餐ID")
    private String groupId;
    /** 单个卖品补差价 */
    @Excel(name = "单个卖品补差价")
    private Long extraMoney;

    private Long goodsId;

    private String goodsName;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderGoodsId(Long orderGoodsId)
    {
        this.orderGoodsId = orderGoodsId;
    }

    public Long getOrderGoodsId()
    {
        return orderGoodsId;
    }
    public void setGoodsCode(String goodsCode)
    {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCode()
    {
        return goodsCode;
    }
    public void setGoodsCount(Long goodsCount)
    {
        this.goodsCount = goodsCount;
    }

    public Long getGoodsCount()
    {
        return goodsCount;
    }
    public void setGoodsType(String goodsType)
    {
        this.goodsType = goodsType;
    }

    public String getGoodsType()
    {
        return goodsType;
    }
    public void setGroupId(String groupId)
    {
        this.groupId = groupId;
    }

    public String getGroupId()
    {
        return groupId;
    }
    public void setExtraMoney(Long extraMoney)
    {
        this.extraMoney = extraMoney;
    }

    public Long getExtraMoney()
    {
        return extraMoney;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderGoodsId", getOrderGoodsId())
            .append("goodsCode", getGoodsCode())
            .append("goodsCount", getGoodsCount())
            .append("goodsType", getGoodsType())
            .append("groupId", getGroupId())
            .append("extraMoney", getExtraMoney())
            .toString();
    }
}
